const fs = require("fs")
const axios = require("axios")

let data = fs.readFileSync("./package.json")

console.info(data)

axios.post("http://localhost:1601/note_submit", {
  "file_content": data,
  "file_name": "test.txt"
})
.then(result => {
  console.info(result.data)
})
.catch (e => {
  console.error(e)
})